// 导入需要的config和request
import confing from '../../config/config.js';
import request from '../../util/request.js';


// 申明请求对象
const bomItemRequest = {
    // itemtype请求的基本url
    BASE_URL: confing.SYS_URL + "/bomItem",


    listBomItem(bomItem, callbcak) {
        // url
        let url = this.BASE_URL + "/listBomItem";
        if (bomItem) {
            if (bomItem.itemId) {
                url += "&itemId=" + bomItem.itemId;
            }
            
        }
        // 发送请求
        request.get(url, callbcak);
    },
}
// 将itemtypeRequest暴漏出去
export default bomItemRequest;